#include "th_sensor_inf.h"

 uint8_t th_sensor_close(th_sensor_handle* handle)
{
    if (handle == NULL || handle->close == NULL)
        return TH_SENSOR_INVALID;
    return handle->close(handle);
}

 uint8_t th_sensor_open(th_sensor_handle* handle)
{
    if (handle == NULL || handle->close == NULL)
        return TH_SENSOR_INVALID;
    return handle->open(handle);
}

 uint8_t th_sensor_read(th_sensor_handle* handle)
{
    if (handle == NULL || handle->close == NULL)
        return TH_SENSOR_INVALID;
    return handle->read(handle);
}